package active.iterators;

import constructor.composite.Deparment;

import java.util.Iterator;

public class ComputerCollege implements College {

    Deparment[] deparments;

    public ComputerCollege() {
        this.deparments = new Deparment[2];
        deparments[0] = new Deparment("计算机系1", "agc");
        deparments[1] = new Deparment("网络工程系1", "abc");
    }

    @Override
    public String getName() {
        return "计算机学院";
    }

    @Override
    public Iterator createIterator() {
        return new ComputerCollegeIterator(deparments);
    }
}
